<?php
/**
 * 菜单模型
 * User 1874
 */
namespace app\adminplatform\model; 
use think\facade\Request; 
use think\Model; 

class Menu extends Model{ 
    /*Menu 列表*/
    public static function getMenuList(array $map=[], int $type=0){
        if($type == 0){
            return Menu::where($map)->paginate(["list_rows"=>PageNum,'query'=>Request::param()]);
        }else{
            return Menu::where($map)->select();
        }
    }
    /*Menu 详情*/
    public static function getMenuDetail(array $map=[]){
        return Menu::where($map)->find();
    }

}